CPP  = g++
CC   = gcc

RES  = 
OBJ  = obj/Polygon.o obj/Material.o obj/Mesh.o obj/Node.o obj/Camera.o obj/TextStream.o obj/Light.o obj/Map.o obj/Ds3Stream.o obj/DiskStream.o obj/Animation.o obj/Scene.o obj/Root.o $(RES)
LINKOBJ  = obj/Polygon.o obj/Material.o obj/Mesh.o obj/Node.o obj/Camera.o obj/TextStream.o obj/Light.o obj/Map.o obj/Ds3Stream.o obj/DiskStream.o obj/Animation.o obj/Scene.o obj/Root.o $(RES)
LIBS =  
INCS =  -I"../../source"  -I"../../../mathing/source"  -I"../../../exceptions/source" 
CXXINCS =  -I"../../source"  -I"../../../mathing/source"  -I"../../../exceptions/source" 
BIN  = ../../lib/linux32/libmodeling.a
CXXFLAGS = $(CXXINCS)  
CFLAGS = $(INCS)  
RM = rm -f

.PHONY: all all-before all-after clean clean-custom

all: all-before ../../lib/linux32/libmodeling.a all-after


clean: clean-custom
	${RM} $(OBJ) $(BIN)

$(BIN): $(LINKOBJ)
	ar r $(BIN) $(LINKOBJ)
	ranlib $(BIN)

obj/Polygon.o: ../../source/Polygon.cpp
	$(CPP) -c ../../source/Polygon.cpp -o obj/Polygon.o $(CXXFLAGS)

obj/Material.o: ../../source/Material.cpp
	$(CPP) -c ../../source/Material.cpp -o obj/Material.o $(CXXFLAGS)

obj/Mesh.o: ../../source/Mesh.cpp
	$(CPP) -c ../../source/Mesh.cpp -o obj/Mesh.o $(CXXFLAGS)

obj/Node.o: ../../source/Node.cpp
	$(CPP) -c ../../source/Node.cpp -o obj/Node.o $(CXXFLAGS)

obj/Camera.o: ../../source/Camera.cpp
	$(CPP) -c ../../source/Camera.cpp -o obj/Camera.o $(CXXFLAGS)

obj/TextStream.o: ../../source/TextStream.cpp
	$(CPP) -c ../../source/TextStream.cpp -o obj/TextStream.o $(CXXFLAGS)

obj/Light.o: ../../source/Light.cpp
	$(CPP) -c ../../source/Light.cpp -o obj/Light.o $(CXXFLAGS)

obj/Map.o: ../../source/Map.cpp
	$(CPP) -c ../../source/Map.cpp -o obj/Map.o $(CXXFLAGS)

obj/Ds3Stream.o: ../../source/Ds3Stream.cpp
	$(CPP) -c ../../source/Ds3Stream.cpp -o obj/Ds3Stream.o $(CXXFLAGS)

obj/DiskStream.o: ../../source/DiskStream.cpp
	$(CPP) -c ../../source/DiskStream.cpp -o obj/DiskStream.o $(CXXFLAGS)

obj/Animation.o: ../../source/Animation.cpp
	$(CPP) -c ../../source/Animation.cpp -o obj/Animation.o $(CXXFLAGS)

obj/Scene.o: ../../source/Scene.cpp
	$(CPP) -c ../../source/Scene.cpp -o obj/Scene.o $(CXXFLAGS)

obj/Root.o: ../../source/Root.cpp
	$(CPP) -c ../../source/Root.cpp -o obj/Root.o $(CXXFLAGS)
